﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EM.OA.Common
{
    public class GlobalEnum
    {
        /// <summary>
        /// 父类别
        /// </summary>
        public enum RootKind
        {
            [Description("公告")]
            AnnounceKind,
            [Description("新闻")]
            NewsKind,
            [Description("性别")]
            SexKind,
            [Description("角色")]
            RoleKind,
            [Description("职位")]
            PositionKind,
            [Description("工作流")]
            WorkFlowKind,
            [Description("工作日志")]
            WorkDayLogKind,
            [Description("日程安排")]
            ScheduleKind,
            [Description("学历")]
            EducationKind,
            [Description("证件类型")]
            IDKind,
            [Description("知识库类别")]
            KnowledgeKind,
            [Description("车辆类别")]
            CarKind,
            [Description("工作计划类型")]
            WorkPlanKind,
            [Description("任务紧要程度")]
            TaskLevelKind,
            //[Description("任务状态")]
            //TaskStatus,
            [Description("项目级别")]
            ProjectLevelKind,
            //[Description("项目状态")]
            //ProjectStatus,
            [Description("固定资产类别")]
            FixedAssetsKind,

        }
        /// <summary>
        /// 任务状态
        /// </summary>
        public enum TaskStatus
        {

            [Description("未发布")]
            Awaiting = -1,
            [Description("进行中")]
            progressing = 0,
            [Description("已完成")]
            Success = 1,
            [Description("已过期")]
            Expired = 2,
            [Description("已撤销")]
            revoked = 3,
        }

        /// <summary>
        /// 项目状态
        /// </summary>
        public enum ProjectStatus
        {
            [Description("未发布")]
            Awaiting = -1,
            [Description("进行中")]
            progressing = 0,
            [Description("已完成")]
            Success = 1,
            [Description("已过期")]
            Expired = 2,
            [Description("已撤销")]
            revoked = 3,

        }

        /// <summary>
        /// 会议室状态
        /// </summary>
        public enum MeetingRoomStatus
        {
            [Description("关闭")]
            Close = 0,
            [Description("开放")]
            Open = 1,
        }

        /// <summary>
        /// 会议室申请状态
        /// </summary>
        public enum MeetingApplyStatus
        {
            [Description("申请中")]
            Appling = 0,
            [Description("申请通过")]
            Success = 1,
            [Description("申请拒绝")]
            Fail = 2,
        }

        /// <summary>
        /// 车辆状态
        /// </summary>
        public enum CarStatus
        {
            [Description("关闭")]
            Close = 0,
            [Description("开放")]
            Open = 1,
        }
        /// <summary>
        /// 车辆申请状态
        /// </summary>
        public enum CarApplyStatus
        {
            [Description("申请中")]
            Appling = 0,
            [Description("申请通过")]
            Success = 1,
            [Description("申请拒绝")]
            Fail = 2,
        }



        /// <summary>
        /// 资产状态
        /// </summary>
        public enum FixedAssetsStatus
        {
            [Description("未使用")]
            NoUse = 0,
            [Description("使用中")]
            Useing = 1,
            [Description("已提足折旧")]
            Full = 2,

        }


        /// <summary>
        /// 工作流申请状态
        /// </summary>
        public enum WorkFlowApplyStatus
        {
            [Description("待审批")]
            Awaiting = -1,
            [Description("审批中")]
            Approving = 0,
            [Description("审批通过")]
            Success = 1,
            [Description("退回")]
            Fail = 2,
        }

        /// <summary>
        /// 工作流审批状态
        /// </summary>
        public enum WorkFlowApproveStatus
        {
            [Description("未开始")]
            Awaiting = -1,
            [Description("已开始")]
            Start = 0,
            [Description("通过")]
            Success = 1,
            [Description("不通过")]
            Fail = 2,
        }

        /// <summary>
        /// 提醒方式
        /// </summary>
        public enum RemindKind
        {
            [Description("OA短消息")]
            OAMessage = 1,
            [Description("Email")]
            Email = 2,
            [Description("手机短信")]
            SMS = 3,
        }

        /// <summary>
        /// 提醒时间类型
        /// </summary>
        public enum RemindTimeKind
        {
            [Description("及时提醒")]
            Now = 1,
            [Description("单次提醒")]
            Once = 2,
            [Description("每天")]
            Day = 3,
            [Description("每周")]
            Week = 4,
            [Description("每月")]
            Month = 5,
            [Description("每年")]
            Year = 6,
        }

        /// <summary>
        /// 提醒重复类型
        /// </summary>
        public enum RemindRepeatKind
        {
            [Description("不重复")]
            NoRepeat = 0,
            [Description("重复")]
            Repeate = 1,
        }


        /// <summary>
        /// 提醒状态
        /// </summary>
        public enum RemindStatus
        {
            [Description("未提醒")]
            NoRemind = 0,
            [Description("提醒中")]
            Reminding = 1,
            [Description("提醒结束")]
            Reminded = 2,
        }

        /// <summary>
        /// 邮箱类型
        /// </summary>
        public enum EmailKind
        {
            [Description("收件箱")]
            Inbox = 1,
            [Description("发件箱")]
            Outbox = 2,
            [Description("草稿箱")]
            Draftbox = 3,
            [Description("垃圾箱")]
            Junkbox = 4,
        }

    }
}
